//
//  BusinessPublicParamsManager.m
//  DailyRecord
//
//  Created by Gin on 2022/4/10.
//

#import "BusinessPublicParamsManager.h"
#import "MD5Untils.h"
#import "DateUntils.h"

@implementation BusinessPublicParamsManager

+ (NSDictionary *)queryPublicParams{
    NSString *uid = [MD5Untils MD5ForLower32Bate:[NSString stringWithFormat:@"%@",UserUntils.sharedUserUntils.user.username]];
    NSDictionary *params = @{
        @"pageNum":@"1",
        @"pageSize":@(INT_MAX),
        @"uid":uid
    };
    return params;
}

+ (NSDictionary *)queryPublicParamsWithTimeSeperator:(NSString *)dateString{
    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:[self queryPublicParams]];
    [params setObject:dateString forKey:@"timeSeperator"];
    return params;
}

@end
